package com.cnbot.aimolib.bean;

import android.graphics.Bitmap;

/**
 * @author ytf
 * Created by on 2021/06/05 09:43
 */
public class AimoFrameData {

    public int width;
    public int height;
    public byte[] data;
    public Bitmap bmp;

    public AimoFrameData(byte[] data , int width, int height) {
        this.width = width;
        this.height = height;
        this.data = data;
    }

    public AimoFrameData() {
    }

    public static AimoFrameData buildEmpty(){
        return new AimoFrameData();
    }

    public boolean isValid(){
        return (width > 0 && height > 0 && data != null && data.length > 0) || bmp != null;
    }
}
